package com.zziq.cloudpicturebank.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConfigurationProperties(prefix = "user-avatar")  // 修改为小写并使用连字符
public class UserAvatarProperties {
    private List<String> defaultAvatars;

    public List<String> getDefaultAvatars() {
        return defaultAvatars;
    }

    public void setDefaultAvatars(List<String> defaultAvatars) {
        this.defaultAvatars = defaultAvatars;
    }
}
